function afficherDiv(id, max){
	
	//agrandir(id, 0, max);

	document.getElementById(id).style.visibility = 'visible';
	document.getElementById(id).style.opacity = 0;
	document.getElementById(id).style.display = 'block';
	document.getElementById(id).style.marginBottom = '30px';
	document.getElementById(id).style.height = max+'px';
	document.getElementById(id).style.opacity = 1;
	document.getElementById("lien"+id).onclick = function(){cacherDiv(id, max);};
	
}

function agrandir(id, h, max){

	document.getElementById(id).style.height = h+"px";

	if ( h < max )
		window.setTimeout("agrandir('"+id+"', "+(h+5)+", "+max+")","10");
	else
		document.getElementById(id).style.opacity = 1;

}


function cacherDiv(id, max){

	document.getElementById(id).style.visibility = 'hidden';
	document.getElementById(id).style.display = 'none';
	document.getElementById(id).style.marginBottom = '0';
	document.getElementById(id).style.height = '0px';
	document.getElementById("lien"+id).onclick = function(){afficherDiv(id, max);};

} 